package a2;

/**
 * PathNotFoundException is a subclass of Exception and is thrown when a
 * specified path cannot be found in a {@link FileSystem}.
 * 
 * @author Dylan Seago, Tianran Liu, Hilal Dib, Paschal Oduoza
 */
public class PathNotFoundException extends Exception {
	private static final long serialVersionUID = 1L;

	public PathNotFoundException() {
		super("No such file or directory");
	}
	
	/**
	 * Instantiates a new PathNotFoundException.
	 * 
	 * @param parent
	 *            {@link Directory} that the {@link Item} could not be found in.
	 * @param name
	 *            Name of the {@link Item} that could not be found.
	 */
	public PathNotFoundException(String path) {
		super(path + ": No such file or directory.");
	}
}
